package Experiment.Text;

public class MyDate {
    public int year=2020;
    public int month=1;
    public int day=1;
    public void printInfo(){
        System.out.println(year+"-"+month+"-"+day);
    }
    public MyDate(){

    }

    public MyDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
}
